|
|
|
|
- Timeout
- Required application feature
- Gmail: What to do if a connection to Gmail (SMTP, IMAP, POP3) fails with a certificate error?
<emailIMAPSession variable>.StartSession (Function) In french: <Variable emailSessionIMAP>.OuvreSession Starts a session for managing emails via the IMAP protocol. // Start an email session managed by the IMAP protocol MyIMAPSession is emailIMAPSession  IF MyIMAPSession.StartSession() = True THEN UserName = MyIMAPSession..Name ELSE UserName = "" Error("Unable to establish the connection") END
Syntax
<Result> = <IMAP session>.OpenSession()
<Result>: Boolean - True if the session was started,
- False otherwise. If an error occurs, the ErrorOccurred variable is set to True.
To get more details on the error, use ErrorInfo with the errMessage constant.
<IMAP session>: emailIMAPSession variable Name of the emailIMAPSession variable corresponding to the email session to handle. Remarks Gmail: What to do if a connection to Gmail (SMTP, IMAP, POP3) fails with a certificate error? Since August 2017, a new certificate was deployed by Google: Google Internet Authority G3. Unfortunately, the Windows API for checking certificates does not validate this certificate. Therefore, starting a POP3, IMAP or SMTP session may fail with the error "The certificate string was not issued by a trusted authority". To validate the certificate, all you have to do is modify the management mode of emails. The WLanguage EmailConfigure function allows you to change this mode and to no longer use the Windows API that locks this certificate. The following code must be added before starting the session via <emailIMAPSession variable>.StartSession:
EmailConfigure(emailParameterMode, 1)
Remark: From version 23 Update 1, the call to EmailConfigure is not required anymore: WLanguage is automatically using the management mode of emails adapted to the session.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|